//
//  ZMYCommend.m
//  XMJJ_zml
//
//  Created by 杨何华 on 2025/5/9.
//

#import "ZMYCommend.h"

@implementation ZMYCommend
+ (instancetype)itemWithDict:(NSDictionary *)dict
{
    ZMYCommend *hero = [[self alloc]init];

    [hero setValuesForKeysWithDictionary:dict];
    return hero;
}
- (void)setValue:(id)value forKey:(NSString *)key{
    //因为已经知道要修改的key所以可以直接判定相等
    if ([key isEqualToString:@"id"]) {
        //进行替换
//        self./*zmy_id*/ = value;
    }else{
        //抛回父类处理
        [super setValue:value forKey:key];
    }
}

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"objectId" : @"id"};
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
